home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <html><head><title>Wait Statement [Runtime]</title><meta name="filename" content="text/sbasic/common/03130600"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
-
- p.P1{
- }
- p.P2{
- }
- span.T1{
- font-weight:bold;}
- </style></head><body>
-
-
- <help:to-be-embedded Eid="wait" xmlns:help="http://openoffice.org/2000/help">
- <p class="Head1"><help:link Id="66543">Wait Statement [Runtime]</help:link></p>
- <p class="Paragraph">Interrupts the program execution for the given amount of time in milliseconds.</p>
- </help:to-be-embedded>
- <p class="Paragraph"><span class="T1">Syntax</span>:</p>
- <p class="Paragraph">Wait millisec <help:key-word value="Wait" tag="kw66543_1" xmlns:help="http://openoffice.org/2000/help"/></p>
- <p class="Paragraph"><span class="T1">Parameter</span>:</p>
- <p class="Paragraph">millisec: Numeric expression that contains the amount of time (in milliseconds) the program execution should wait.</p>
- <p class="P2">Example:</p>
- <p class="PropText">Sub ExampleWait</p>
- <p class="PropText">Dim lTick As Long</p>
- <p class="PropText">lTick = GetSystemTicks()</p>
- <p class="PropText">wait 2000</p>
- <p class="PropText">lTick = <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>(GetSystemTicks() - lTick)</p>
- <p class="PropText">MsgBox "" & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>lTick & " Ticks" ,0,"The pause lasted"</p>
- <p class="PropText">End Sub</p>
- <p class="PropText"/>
- </body></html>